#ifndef _CINPUT_H_
#define _CINPUT_H_
#include "Globals.h"

class CInput
{
private:
	IDirectInput8		*m_pInput;
	IDirectInputDevice8 *m_pKeyboardDevice;
	IDirectInputDevice8 *m_pMouseDevice;
	char				keys[256];
	int					keyPressState[256];
	DIMOUSESTATE2       m_MouseState;
public:
	CInput();
	~CInput();
	//KeyBoard
	bool CreateInput();
	bool InitKeyboard(HWND);
	bool IsKeyDown(int keycode);
	bool IsKeyUp(int keycode);
	bool IsKeyPress(int keycode);
	void ProcessKey(HWND);
	//Mouse
	bool InitMouse(HWND);
	void GetMouse();
	bool IsMouseDown(int button);
	float mouseDX();
	float mouseDY();
	float mouseDZ();
};
#endif